package 第四题;

import 第一题.Thread;

/**
 * @author A18ccms A18ccms_gmail_com
 * @version V1.0
 * @Title:
 * @Package
 * @Description: (用一句话描述该文件做什么)
 * @date
 */

public class Main {
    public static void main(String[] args) {
        Thread1 t2=new Thread1();
        System.out.println("主线程："+Thread.currentThread().getName()+"，优先级："+Thread.currentThread().getPriority());
        System.out.println("子线程："+t2.getName()+",优先级："+t2.getPriority());



        System.out.println("*****修改后*******");
        Thread.currentThread().setPriority(java.lang.Thread.MAX_PRIORITY);

        System.out.println("主线程："+Thread.currentThread().getName()+"，优先级："+Thread.currentThread().getPriority());
        t2.setPriority(java.lang.Thread.MIN_PRIORITY);
        System.out.println("子线程："+t2.getName()+",优先级："+t2.getPriority());
    }
}
